<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>ES8对象方法扩展</title>
	</head>
	<body>
		<script>
			const school = {
				name : 'hangzhou',
				area : ['萧山','余杭','西湖','拱墅'],
				address : ['XX','YY','ZZ','WWW']
			};
			
			console.log(Object.keys(school));
			console.log(Object.values(school));
			console.log(Object.entries(school));
			const m = new Map(Object.entries(school));
			console.log(m);
			// 对象属性的描述对象
			console.log(Object.getOwnPropertyDescriptors(school));
			const obj = Object.create(null,{
				name: {
					value:'abckid',
					writable:true,
					configurable:true,
					enumerable:true
				}
			});
		</script>
	</body>
</html>